using Orchard.UI.Resources;

namespace Dyn.News {
    public class ResourceManifest : IResourceManifestProvider {
        public void BuildManifests(ResourceManifestBuilder builder) {
            var manifest = builder.Add();
            manifest.DefineStyle("CategoryAdmin").SetUrl("orchard-Category-admin.css");
            manifest.DefineStyle("CategoryArchives").SetUrl("orchard-Category-archives.css");

            manifest.DefineScript("CategoryArchives").SetUrl("orchard-Category-archives.js").SetDependencies("jQuery");

            manifest.DefineStyle("DynEcommerceAdmin").SetUrl("dyn-ecommerce-admin.css");
            manifest.DefineStyle("DynEcommerce").SetUrl("dyn-ecommerce.css");
            manifest.DefineStyle("Datatable").SetUrl("jquery.dataTables.css");

            manifest.DefineScript("jQueryEcommerceAdmin").SetDependencies("jquery").SetUrl("ecommerce_admin_ui.js");
            manifest.DefineScript("jQueryProduct").SetDependencies("jquery").SetUrl("jquery.dyn.products.js");
            manifest.DefineScript("jQueryCategory").SetDependencies("jquery").SetUrl("jquery.dyn.categories.js");
            manifest.DefineScript("jQueryDatatable").SetDependencies("jquery").SetUrl("jquery.dataTables.min.js");
        }
    }
}
